package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ContractEntity;
@MyBatisDao
public interface ContractEntityMapper extends CrudDao<ContractEntity>{
    int deleteByPrimaryKey(Long contractId);

    int insert(ContractEntity record);

    int insertSelective(ContractEntity record);

    ContractEntity selectByPrimaryKey(Long contractId);

    int updateByPrimaryKeySelective(ContractEntity record);

    int updateByPrimaryKeyWithBLOBs(ContractEntity record);

    int updateByPrimaryKey(ContractEntity record);
    /**
     * @Description 定时获取数据供财务业务结算使用
     * @param contractEntity
     * @return
     */
    List<ContractEntity> findListForFinance(ContractEntity contractEntity);
    /**
     * @Description 更新定时获取的数据状态
     * @param contractEntity
     */
    int updateStatus(ContractEntity contractEntity);
}